<template>
  <div class="modal-wrapper">
    <div class="modal-container">
      <div class="success_img">
        <img src="../../../images/ok.gif" alt="">
      </div>
      <div class="success_btn">
        <button type="button" name="button" @click="goBack">分享成功</button>
        <p v-show="noReward">此次分享没有奖励金哦，可能原因如下<br />1.此好友在此券的分享链中<br />2.分享次数已达到此券的分享层级限制</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
    data:function(){
        return{
        }
    },
    props:{
        noReward:''
    },
  methods: {
    goBack: function() {
      this.$emit('clickBack')
    }
  }
}
</script>

<style lang="scss" scoped>
.modal-wrapper {
    position: fixed;
    overflow: scroll;
    background-color: rgba(0,0,0,0.6);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    .modal-container {
        width: 80%;
        margin: auto;
        background-color: #fff;
        margin-top: 32%;
        margin-bottom: 12%;
        border-radius: 0.2rem;
        overflow: hidden;
    }
}
.success_img {
  width: 180px;
  margin: 2rem auto 1.6rem;
  text-align: center;
  img {
    max-width: 100%;
  }
}

.success_word {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  padding-bottom: 0.5rem;
}
.success_btn {
  text-align: center;
  margin-bottom: 2rem;
  button {
    padding: 0.4rem 2.4rem;
    // height: 2.4rem;
    margin: 1rem 0;
    font-size: 0.85rem;
    background-color: #ec4e8a;
    color: #fff;
    border-radius: 0.2rem;
    outline: none;
  }
  p{
    font-size:.8rem;
    color:#666;
    margin-top:1rem;
  }
}
</style>
